package edu.sctu.practice.class01.nieyu.test.test13;

import java.awt.*;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Rectangle extends Graph {

    int length;
    int width;

    public Rectangle(Point center, int length, int width) {

        super(center);
        this.length = length;
        this.width = width;

    }

    public void getInfo() {

        System.out.println("矩形：" + "\n" + "校准点：" + center + "\n" + "长：" + length + "\n" + "宽" + width);

    }
}
